<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">
    <link rel="apple-touch-icon-precomposed" href="./icon.png" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-title" content="" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <title>shanghai</title>
    <link rel="stylesheet" href="../bs/css//bootstrap.css">
    <link rel="stylesheet" href="/bs/css/iconfont.css">
    <script src="../bs/js/jquery-3.6.0.min.js"></script>
    <script src="../bs/js/bootstrap.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
            font-family: PingFangSC-Regular, Verdana, Arial, '微软雅黑', '宋体';
        }

        html,
        body {
            height: 100vh;
            overflow: hidden;
            padding-bottom: env(safe-area-inset-bottom);
            padding-bottom: constant(safe-area-inset-bottom);
            overflow-y: auto;
        }

        .body {
            padding: 12px 20vw;
            padding-bottom: 12px;
            min-height: 100%;
        }

        .banner {
            width: 100%;
            max-height: 660px;
            object-fit: cover;
        }

        .post-title {
            font-size: 22px;
            font-weight: bold;
            padding-bottom: 12px;
        }

        .post-content {
            font-size: 14px;
            padding: 12px 0;
            color: #666666;
        }
    </style>

    <script>
        function loadLast() {
            window.history.go(-1);
        }
    </script>
</head>

<body>
    {% include '/view/menu.html'%}
    <div class="body">
        {% if data==None %}
        <div>None</div>
        {% else %}
        <i class="iconfont icon-60fanhui-1" style="font-size: 26px;cursor: pointer;" onclick="loadLast()"></i>
        <!-- <h2>{{data}}</h2> -->
        <!-- title -->
        <div class="post-title">{{data.title}}</div>
        {% set arr=data.images.split(',') %}
        <!-- banner -->
        <img src="{{arr[0]}}" class="banner" alt="" srcset="" />
        <div class="post-content">{{data.content}}</div>
        {% if arr|length > 2 %}
        <img src="{{arr[1]}}" class="banner" alt="" srcset="" />
        {% endif%}
        {% endif%}



    </div>



    {% include '/view/foot.html'%}

</body>

</html>